<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>闭包</title>
		<script>
			function f(){
				let i=100;
				let b=function(){
					i++;
					return i;
				}
				return b;
			}
			let q=f();
			let i1=q();
			i1=q();
			i1=q();
			i1=q();
			console.log(i1);//104? 101
			(function(){
				//初始化
				console.log("初始化")
			})();
		</script>
	</head>
	<body>
	</body>
</html>